<template>
	<section>
		<Card v-for="data in result" :key="data.id"
		:id="data.id"
		:description="data.description"/>
	</section>
</template>
<script>
import Card from '~/components/Card.vue';
export default{
	components: {
		Card
	},
	asyncData (context) {
	    return new Promise((resolve,reject)=>{
	      setTimeout(()=>{
	        resolve({
		        result:[
		            {
		              id:"10",
		              description:"this is jack"
		            },
		            {
		              id:"15",
		              description:"this is tom"
		            }
		        ]
	        })
	      },1000)
	    })
	    /*console.log(context)*/
	}
}
</script>
<style scoped>
	
</style>